#ifndef WIFIPAGEPRESENTER_HPP
#define WIFIPAGEPRESENTER_HPP

#include <gui/model/ModelListener.hpp>
#include <mvp/Presenter.hpp>

using namespace touchgfx;

class WiFiPageView;

class WiFiPagePresenter : public touchgfx::Presenter, public ModelListener
{
public:
    WiFiPagePresenter(WiFiPageView& v);

    /**
     * The activate function is called automatically when this screen is "switched in"
     * (ie. made active). Initialization logic can be placed here.
     */
    virtual void activate();

    /**
     * The deactivate function is called automatically when this screen is "switched out"
     * (ie. made inactive). Teardown functionality can be placed here.
     */
    virtual void deactivate();

    virtual ~WiFiPagePresenter() {};
		//获取WiFi模组的RSSI值
		virtual void updateWiFiRSSI(uint8_t (&pWiFiInfo)[40], uint16_t newRSSI);
		//物理按键的页面跳转
		virtual void WiFiPageChange(uint8_t newFiveKeyFunc);
		//WiFi网络连接任务
		void WiFiLinkTask(bool enable);
		//WiFiPagePresenter状态
		void WiFiPagePresenterState(bool enable);
private:
    WiFiPagePresenter();

    WiFiPageView& view;
};

#endif // WIFIPAGEPRESENTER_HPP
